


import { lazy } from "react";

import { RouterConfig } from "../utils/types";


const routerConfig:RouterConfig = {
    mode: "history",
    routes: [
        {
            path: "/",
            redirect: "/home"
        },
        {
            path: "/home",
            component: lazy(() => import("../pages/home")),
            children: [
                {
                    path: "/home/index",
                    component: lazy(() => import("../pages/index"))
                },
                {
                    path: "/home/classify",
                    component: lazy(() => import("../pages/classify"))
                },
                {
                    path: "/home/my",
                    component: lazy(() => import("../pages/my"))
                }
            ]
        },
        {
            path:"*",
            name:"notFound",
            component:lazy(() => import ("../pages/notFound"))
        }
    ]
};


export default routerConfig;






